:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --background-light: #f8fafc;
  --border-color: #e2e8f0;
  --error-color: #ef4444;
  --success-color: #22c55e;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
body {
  padding: 0;
  margin: 0;
}

.baoyi-registration-plugin {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f1f5f9;
  color: #334155;
  padding: 10px;
  max-width: 1000px;
  margin: 0 auto;

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  .panel-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
  }

  .panel {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 10px;
    flex: 1;
    min-width: 300px;
  }

  .panel-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
  }

  .form-group {
    margin-bottom: 5px;
  }

  .auto-add-goods-wrapper {
    display: flex;
    align-items: center;
    label{
      margin-left: 10px;
      width: 200px;
    }
  }

  label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #374151;
  }

  input[type="text"],
  input[type="password"],
  input[type="number"],
  select {
    width: 100%;
    padding: 4px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
  }

  input[type="text"]:focus,
  input[type="password"]:focus,
  input[type="number"]:focus,
  select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  }

  button {
    padding: 6px 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    width: 100%;
  }

  button:hover {
    background-color: var(--primary-hover);
  }

  button:active {
    transform: scale(0.98);
  }

  button:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
    transform: none;
  }

  .login-btn-wrapper {
    margin-top: 10px;
    display: flex;
  }

  .mt-10 {
    margin-top: 10px;
  }

  .font-16 {
    font-size: 16px;
  }

  .error {
    background-color: #fee2e2;
    color: var(--error-color);
  }

  .success {
    background-color: #dcfce7;
    color: var(--success-color);
  }

  @media (max-width: 768px) {
    .panel-container {
      flex-direction: column;
    }
  }

  /* 登录后的显示和隐藏 */
  .login-in .shop-select-wrapper,
  .login-in .active-panel {
    display: block;
  }

  .shop-select-wrapper,
  .active-panel {
    display: none;
  }
}
